package cn.com.cis.domain;

import java.io.Serializable;

import lombok.Data;

/**
 *
 * 数据库连接信息实体类
 * 
 * @author lwang
 */

@Data
public class Connection implements Serializable {

	private static final long	serialVersionUID	= -4470281017887560469L;

	private int					connectionId;
	private String				connectionName;

	// 支持 DB2, SQL Server, Oracle with SID, Oracle with Service Name, Mongo DB(, Derby--用于测试)
	// 也用于标识非数据库类型 CSV, Excel, Text, XML, JEXL and Janino
	private String				databaseType;

	private String				hostIp;
	private int					port;

	// 类型为Oracle with SID时， 此项代表SID
	// 类型为Oracle with service name时， 此项代表service name
	private String				databaseName;

	private String				additionalParameter;

	private String				username;
	private String				password;

}
